<template>
	<view>
		<view class="content_box" v-for="(item,index) in data_list" :key="index">
		<!-- <view class="content_box" v-for="(item,index) in 9" :key="index"> -->
			<view class="content_box_text" >抵扣金额</view>
			<view class="content_box_text" >￥{{item.money}}</view>
			<!-- <view class="content_box_text" >￥100</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data_list:[]
			}
		},
		onLoad() {
			this.user_coupons_api()
		},
		methods: {
			user_coupons_api() {
				var that = this
				that.$request(that.$Api.user_coupons_api, {
					access_token: uni.getStorageSync('access_token'),
				}, "POST").then(res => {
					if (res.data.code == 0) {
						console.log('res.data.data',res.data.data)
						that.data_list = res.data.data
					} else {
						uni.showToast({
							title: res.data.msg,
							duration: 2000,
							icon: 'none'
						});
					}
				})
			},
		}
	}
</script>

<style lang="less">
	page{
		.content_box{
			.content_box_text{
				font-size: 28upx;
			}
			width: 700upx;
			margin-left: 25upx;
			padding: 50upx 0;
			border-bottom: 1upx solid #eee;
			display: flex;
			justify-content: space-between;
		}
	}
</style>
